package backend;

import frontend.BoardFrame;
import concrete.Token;

public class PropertyMode {
	private BoardFrame boardFrame;

	public PropertyMode(BoardFrame boardFrame) {
		this.boardFrame = boardFrame;
	}
	
	public BoardFrame getBoardFrame() {
		return this.boardFrame;
	}
	
	public void setBoardFrame(BoardFrame boardFrame) {
		this.boardFrame = boardFrame;
	}

	public String identifyMarker(Token token, int position) {
		String image = "/img/propertyMarkers/";
		System.out.println(image);
		
		if(token.getTokenImage().equals("01.png"))
			image = image + "pink_";
		else {
			if(token.getTokenImage().equals("02.png"))
				image = image + "purple_";
			else {
				if(token.getTokenImage().equals("03.png"))
					image = image + "red_";
				else {
					if(token.getTokenImage().equals("04.png"))
						image = image + "coal_";
					else {
						if(token.getTokenImage().equals("05.png"))
							image = image + "green_";
						else {
							if(token.getTokenImage().equals("06.png"))
								image = image + "yellow_";
							else {
								if(token.getTokenImage().equals("07.png"))
									image = image + "gray_";
								else {
									image = image + "indigo_";
								}
							}
						}
					}
				}
			}
		}
		System.out.println(image);
		if(position>0&&position<10)
			image = image + "b0.png";
		else {
			if(position>10&&position<20)
				image = image + "l0.png";
			else {
				if(position>20&&position<30)
					image = image + "t0.png";
				else {
					image = image + "r0.png";
				}
			}
		}
		
		return image;
	}
}
